package com.cn.wanxi.thread;

public class MyRunnable implements Runnable {
    private int a = 100;

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            if(a<=0){
                break;
//                continue;return 的区别?
            }
            System.out.println("线程开启："+Thread.currentThread().getName()+"执行第 " + --a + " 次");
        }
    }
}